package com.sys.basics.service;

import com.sys.basics.entity.SysScheduleJob;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


/**
 * @author: ares
 * @date: 2021-10-29
 * @description: 定时任务表 服务类
 */
public interface SysScheduleJobService extends IService<SysScheduleJob> {

    List<Object> getSupportiveJobTasks();

    boolean createJob(SysScheduleJob sysScheduleJob);

    boolean updateJob(SysScheduleJob sysScheduleJob);

    Map<String, Object> batchRun(List<Long> scheduleJobIds);

    Map<String,Object> batchPause(List<Long> scheduleJobIds);

    Map<String,Object> batchResume(List<Long> scheduleJobIds);

    Map<String,Object> batchRemove(List<Long> scheduleJobIds);
}
